package com.finance.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.finance.dao.LoanDao;
import com.finance.entity.Loan;

@Service("adminLoanService")
public class LoanService {
	
	@Resource(name = "adminLoanDao")
	private LoanDao loanDao;
	
	public void add(Loan loan){
		loanDao.add(loan);
	}
	
	public List<Loan> loanList(String yhUserId){
		return loanDao.loanList(yhUserId);
	}
	
	public Loan findById(String tyUserId){
		return loanDao.findById(tyUserId);
	}
	
	public void update(Loan loan){
		loanDao.update(loan);
	}

}
